// 首页服务器请求
import { get } from '@/utils/http'
import { threeApiConfig } from '@/utils/config'

// 获取轮播图
export const getBanner = () => get(
  threeApiConfig.baseApi + '/v2/banner/get?clientType=iphone'
)

// 获取 全部歌单分类
export const getPlaylistCatalogue = () => get(
  threeApiConfig.baseApi + '/playlist/catalogue'
)

// 获取 推荐歌单列表
// 暂时无法控制偏移量
// params = {limit:默认6, totle: true, n: 1000}
export const getPlaylist = params => get(
  threeApiConfig.baseApi + '/personalized/playlist'
  , params)

// 获取 推荐MV列表
export const getPlayMvList = () => get(
  threeApiConfig.baseApi + '/personalized/mv?type=recommend'
)

// test
export const playList = () => get(
  threeApiConfig.baseApi + '/personalized/playlist'
)
